home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / gfx / x11 / x3270_3_2_16.lha / amiga_src / ftc.h < prev    next >
C/C++ Source or Header  |  2009-02-22  |  2KB  |  51 lines

  1. /*
  2.  * Modifications Copyright 1996, 1999, 2000 by Paul Mattes.
  3.  * Copyright October 1995 by Dick Altenbern
  4.  *  Permission to use, copy, modify, and distribute this software and its
  5.  *  documentation for any purpose and without fee is hereby granted,
  6.  *  provided that the above copyright notice appear in all copies and that
  7.  *  both that copyright notice and this permission notice appear in
  8.  *  supporting documentation.
  9.  */
  10.  
  11. /*
  12.  *    ftc.h
  13.  *        Global declarations for ft.c.
  14.  */
  15.  
  16. #if defined(X3270_FT) /*[*/
  17.  
  18. extern Boolean ascii_flag;
  19. extern Boolean cr_flag;
  20. extern unsigned long ft_length;
  21. extern FILE *ft_local_file;
  22. extern char *ft_local_filename;
  23. enum ft_state {
  24.     FT_NONE,    /* No transfer in progress */
  25.     FT_AWAIT_ACK,    /* IND$FILE sent, awaiting acknowledgement message */
  26.     FT_RUNNING,    /* Ack received, data flowing */
  27.     FT_ABORT_WAIT,    /* Awaiting chance to send an abort */
  28.     FT_ABORT_SENT    /* Abort sent; awaiting response */
  29.     };
  30. extern enum ft_state ft_state;
  31. extern Boolean remap_flag;
  32.  
  33. extern void ft_aborting(void);
  34. extern void ft_complete(const char *errmsg);
  35. extern void ft_init(void);
  36. extern void ft_running(Boolean is_cut);
  37. extern void ft_update_length(void);
  38. extern void PA_dialog_focus_action(Widget w, XEvent *event, String *parms,
  39.     Cardinal *num_parms);
  40. extern void PA_dialog_next_action(Widget w, XEvent *event, String *parms,
  41.     Cardinal *num_parms);
  42. extern void popup_ft(Widget w, XtPointer call_parms, XtPointer call_data);
  43. extern void Transfer_action(Widget w, XEvent *event, String *parms,
  44.     Cardinal *num_parms);
  45.  
  46. #if !defined(X3270_MENUS) /*[*/
  47. extern void ft_init(void);
  48. #endif /*]*/
  49.  
  50. #endif /*]*/
  51.